package cn.ccit.base;

/**
 * 所有类的公共字段常量放置位置
 * 
 * @author wanghao
 * @since 2016.10.08
 */
public class BaseConstants {
	/**
	 * 角色
	 */
	public static final String WAITER = "服务员";
	
	
	/**
	 * 
	 * 星期数枚举值
	 */
	public enum WeekMapping {
		SUN, MON, TUE, WED, THU, FRI, SAT;
	}

	/**
	 * 
	 * 
	 * 支付方式枚举值 支付宝 微信 现金
	 */
	public static final String PAYWAY = "支付方式";
	public static final String AlIPAY = "支付宝";
	public static final String WEIXING = "微信";
	public static final String CASH = "现金";

	public enum PayWay {
		AlIPAY, WEIXING, CASH;
	}

	/**
	 * 
	 * 支付状态枚举值 已支付 未支付
	 */
	public static final String PAYSTATE = "支付状态";
	public static final String NOPAY = "未支付";
	public static final String ALREADYPAY = "已支付";

	public enum PayState {
		NOPAY, ALREADYPAY;
	}

	/**
	 * 菜品类型 主食 汤类 炒菜
	 */
	public static final String DISHTYPA = "菜品类型";
	public static final String HOTDISH = "炒菜";
	public static final String STAPLEFOOD = "主食";
	public static final String SOUP = "汤类";

	public enum DishType {
		HotDish, StapleFood, Soup;
	}

	/**
	 * 菜品状态 已上菜 未上菜 退菜
	 */
	public static final String DISHSTATE = "菜品状态";
	public static final String NOSERVEDISH = "未上菜";
	public static final String ALREADYSERVEDISH = "已上菜";
	public static final String RETREATFOOD = "已退菜";

	public enum DishState {
		NoServeDish, AlreadyServeDish, RetreatFood;
	}

	/**
	 * 餐桌状态
	 * 
	 */
	public static final String TABLESTATE = "餐桌状态";
	public static final String CLOSETABLE = "未开台";
	public static final String OPENTABLE = "开台";
	public static final String TABLE_LOCATION_STATE = "餐桌位置类型";
	
	public enum TableState {
		CloseTable, OpenTable;
	}
	public static final String AUTHORITY_ENUM = "权限枚举";
	public enum Authority{
		No,Yes;
	}
	
	public static final String YEAR="year";
	public static final String MONTH="Month";
	public static final String DATE="date";
	public static final String CRTEAT_TIME="creatTime";
	
	public static final int SUCESSFUL_STATE_CODE=200;
	public static final int FAIL_STATE_CODE=101;
	public static final int NOT_FOUND_CODE=102;
	public static final int FILE_UPLOAD_FAIL_CODE=103;
	public static final String SUCESSFUL_STATE_MESSAGE="OK";
	public static final String FAIL_STATE_MESSAGE="参数错误";
	public static final String NOT_FOUND_MESSAGE="数据未找到";
	public static final String FILE_UPLOAD_FAIL_MESSAGE="文件上传失败";
}
